import Layout from '@/layout'
export default [
    {
        path: '/approval',
        component: Layout,
        name: 'approvals',
        children: [
            {
                path: "",
                component: () => import('@/views/approvals'),
                meta: { title: '审批管理', icon: 'el-icon-s-check' }
            }
        ]
    },
    {
        path: '/attendance',
        component: Layout,
        name: 'attendances',
        children: [
            {
                path: "",
                component: () => import('@/views/attendances'),
                meta: { title: '考勤管理', icon: 'el-icon-s-order' }
            }
        ]
    },
    {
        path: '/department',
        component: Layout,
        name: 'department',
        children: [
            {
                path: '',
                component: () => import('@/views/department'),
                meta: { title: '部门管理', icon: 'el-icon-s-cooperation' }
            }
        ]
    },
    {
        path: '/员工',
        component: Layout,
        name: 'employees',
        children: [
            {
                path: "",
                component: () => import('@/views/employee'),
                meta: { title: '员工管理', icon: 'el-icon-s-custom' }
            }
        ]
    },
    {
        path: '/permission',
        name: 'permissions',
        component: Layout,
        children: [
            {
                path: "",
                component: () => import('@/views/permission'),
                meta: { title: '权限管理', icon: 'el-icon-s-marketing' }
            }
        ]
    },
    {
        path: '/salary',
        component: Layout,
        name: 'salarys',
        children: [
            {
                path: "",
                component: () => import('@/views/salarys'),
                meta: { title: '工资管理', icon: 'el-icon-collection-tag' }
            }
        ]
    },
    {
        path: '/setting',
        component: Layout,
        name: 'settings',
        children: [
            {
                path: "",
                component: () => import('@/views/setting'),
                meta: { title: '公司设置', icon: 'el-icon-s-tools' }
            }
        ]
    },
    {
        path: '/social',
        component: Layout,
        name: 'social_securitys',
        children: [
            {
                path: "",
                component: () => import('@/views/social'),
                meta: { title: '社保管理', icon: 'el-icon-s-ticket' }
            }
        ]
    },
    {
        path: '/upload',
        component: Layout,
        to: { name: 'upload' },
        children: [
            {
                name: 'upload',
                path: "",
                component: () => import('@/views/upload'),
            }
        ]
    },
    {
        path: '/detail',
        component: Layout,
        to: { name: 'detail' },
        children: [
            {
                name: 'detail',
                path: "",
                component: () => import('@/views/employee/detail'),
            }
        ]
    }
]